<!DOCTYPE html>
<html>
<head>
  <title>JMockit Coverage Report - NewCard.java</title>
  <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
  <link rel='stylesheet' type='text/css' href='../../../coverage.css'/>
  <script type='text/javascript' src='../../../coverage.js'></script>
  <script type='text/javascript' src='../../../prettify.js'></script>
</head>
<body onload='prettyPrint()'>
  <table cellpadding='0' cellspacing='1'>
    <caption>Starbucks\src\com\sb\view\NewCard.java</caption>
    <tr>
      <td class='line'></td><td>&nbsp;</td>
      <td class='comment' onclick='showHideLines(this)'><div>/***************************************
 * SCREEN:Add Card AUTHOR:Madhumita V
 *************************************** 
 */</div><span>/*...*/</span></td>
    </tr>
    <tr>
      <td class='line'>5</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>package com.sb.view;</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>7</td><td class='count'>2</td>
      <td><pre class='prettyprint covered' id='l7s0'>public class NewCard {</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>9</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l9s0'>	private Integer[] <span class='instance uncovered' title='Reads: 0 Writes: 1'>cardNumber</span> = new Integer[10];</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>11</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l11s0'>	private Integer[] <span class='instance uncovered' title='Reads: 0 Writes: 1'>cardCode</span> = new Integer[10];</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>13</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l13s0'>	private int <span class='instance covered' title='Reads: 3 Writes: 1'>cardNoLength</span> = 0;</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>15</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l15s0'>	private int <span class='instance uncovered' title='Reads: 0 Writes: 1'>cardCodeLength</span> =0;</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>17</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void setCardNumberDigit(int x){</pre></td>
    </tr>
    <tr>
      <td></td><td class='count'>0</td>
      <td class='paths'>
        <span style='cursor:default; background-color:#ff0000' onclick='hidePath()'>Path coverage: 0/2</span>
        <span class='uncovered' onclick="showPath(this,'l18s0 l20s0')">A: 0</span>
        <span class='uncovered' onclick="showPath(this,'l18s0 l19s0 l20s0')">B: 0</span>
      </td>
    </tr>
    <tr>
      <td class='line'>18</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		<span id='l18s0' title='Executions: 0' class='uncovered'>if ( cardNoLength &lt; 10)</span></pre></td>
    </tr>
    <tr>
      <td class='line'>19</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l19s0'>			cardNumber[cardNoLength++] = x;</pre></td>
    </tr>
    <tr>
      <td class='line'>20</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l20s0'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>22</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void removeCardNumberDigit(){</pre></td>
    </tr>
    <tr>
      <td></td><td class='count'>0</td>
      <td class='paths'>
        <span style='cursor:default; background-color:#ff0000' onclick='hidePath()'>Path coverage: 0/2</span>
        <span class='uncovered' onclick="showPath(this,'l23s0 l25s0')">A: 0</span>
        <span class='uncovered' onclick="showPath(this,'l23s0 l24s0 l25s0')">B: 0</span>
      </td>
    </tr>
    <tr>
      <td class='line'>23</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		<span id='l23s0' title='Executions: 0' class='uncovered'>if ( cardNoLength >0 )</span> </pre></td>
    </tr>
    <tr>
      <td class='line'>24</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l24s0'>			cardNumber[--cardNoLength] = null;</pre></td>
    </tr>
    <tr>
      <td class='line'>25</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l25s0'>	}</pre></td>
    </tr>
    <tr>
      <td class='line'>26</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public String getCardNumber() {</pre></td>
    </tr>
    <tr>
      <td class='line'>27</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l27s0'>		StringBuilder str = new StringBuilder();</pre></td>
    </tr>
    <tr>
      <td class='line'>28</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l28s0'>		for ( int i=0;i&lt;getCardNoLength(); i++) {</pre></td>
    </tr>
    <tr>
      <td class='line'>29</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l29s0'>			str.append(cardNumber[i].intValue());</pre></td>
    </tr>
    <tr>
      <td class='line'>30</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr>
      <td class='line'>31</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l31s0'>		return str.toString();</pre></td>
    </tr>
    <tr>
      <td class='line'>32</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>34</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void setCardCodeDigit(Integer pressedNumber){</pre></td>
    </tr>
    <tr>
      <td></td><td class='count'>0</td>
      <td class='paths'>
        <span style='cursor:default; background-color:#ff0000' onclick='hidePath()'>Path coverage: 0/2</span>
        <span class='uncovered' onclick="showPath(this,'l35s0 l37s0')">A: 0</span>
        <span class='uncovered' onclick="showPath(this,'l35s0 l36s0 l37s0')">B: 0</span>
      </td>
    </tr>
    <tr>
      <td class='line'>35</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		<span id='l35s0' title='Executions: 0' class='uncovered'>if ( cardCodeLength &lt;4)</span></pre></td>
    </tr>
    <tr>
      <td class='line'>36</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l36s0'>			cardCode[cardCodeLength++] = pressedNumber;</pre></td>
    </tr>
    <tr>
      <td class='line'>37</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l37s0'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>39</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void removeCardCodeDigit(){</pre></td>
    </tr>
    <tr>
      <td></td><td class='count'>0</td>
      <td class='paths'>
        <span style='cursor:default; background-color:#ff0000' onclick='hidePath()'>Path coverage: 0/2</span>
        <span class='uncovered' onclick="showPath(this,'l40s0 l42s0')">A: 0</span>
        <span class='uncovered' onclick="showPath(this,'l40s0 l41s0 l42s0')">B: 0</span>
      </td>
    </tr>
    <tr>
      <td class='line'>40</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		<span id='l40s0' title='Executions: 0' class='uncovered'>if ( cardCodeLength >0 )</span> </pre></td>
    </tr>
    <tr>
      <td class='line'>41</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l41s0'>			cardCode[--cardCodeLength] = null;</pre></td>
    </tr>
    <tr>
      <td class='line'>42</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l42s0'>	}</pre></td>
    </tr>
    <tr>
      <td class='line'>43</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public String getCardCode() {</pre></td>
    </tr>
    <tr>
      <td class='line'>44</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l44s0'>		StringBuilder str = new StringBuilder();</pre></td>
    </tr>
    <tr>
      <td class='line'>45</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l45s0'>		for ( int i=0;i&lt;getCardCodeLength(); i++) {</pre></td>
    </tr>
    <tr>
      <td class='line'>46</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l46s0'>			str.append(cardCode[i].intValue());</pre></td>
    </tr>
    <tr>
      <td class='line'>47</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr>
      <td class='line'>48</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l48s0'>		return str.toString();</pre></td>
    </tr>
    <tr>
      <td class='line'>49</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>51</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public int getCardNoLength() {</pre></td>
    </tr>
    <tr>
      <td class='line'>52</td><td class='count'>3</td>
      <td><pre class='prettyprint covered' id='l52s0'>		return cardNoLength;</pre></td>
    </tr>
    <tr>
      <td class='line'>53</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	}</pre></td>
    </tr>
    <tr>
      <td class='line'>54</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public int getCardCodeLength() {</pre></td>
    </tr>
    <tr>
      <td class='line'>55</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l55s0'>		return cardCodeLength;</pre></td>
    </tr>
    <tr>
      <td class='line'>56</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>58</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void setCardNolength(int cardNolength) {</pre></td>
    </tr>
    <tr>
      <td class='line'>59</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l59s0'>		this.cardNoLength = cardNolength;</pre></td>
    </tr>
    <tr>
      <td class='line'>60</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l60s0'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>62</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void setCardCode(Integer[] cardCode) {</pre></td>
    </tr>
    <tr>
      <td class='line'>63</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l63s0'>		this.cardCode = cardCode;</pre></td>
    </tr>
    <tr>
      <td class='line'>64</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l64s0'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>67</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>}</pre></td>
    </tr>
  </table>
</body>
</html>
